﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/DefaultERPMaster.Master" AutoEventWireup="true" CodeBehind="002-Usuarios-Detalhes.aspx.cs" Inherits="Guarouba.Pages._002_Usuarios_Detalhes" %>

<asp:Content ID="Content1" ContentPlaceHolderID="phHeader" runat="server">
    
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="phContent" runat="server">
    <legend>Detalhes da Conta do Usuário</legend>

    <div style="text-align:right; padding-bottom:20px; margin-bottom:20px; border-bottom:1px solid #ECECEC;">
        <a href="001-Usuarios.aspx" class="btn btn-primary">Voltar</a>
        <a href="#modalPermissao" role="button" class="btn btn-primary" data-toggle="modal">Permissões de Acesso</a>
        <a href="#modalExcluir" role="button" class="btn btn-danger" data-toggle="modal" id="btnExcluir" runat="server" visible="false">Excluir</a>
        <asp:Button ID="btSalvar" runat="server" Text="Salvar" class="btn btn-success" OnClick="btSalvar_Click"/>   
    </div>

    <%--Modal Excluir Vaga--%>
    <div id="modalExcluir" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h3 id="H3">Excluir Usuário</h3>
        </div>

        <div class="modal-body">
            <div style="border:1px solid #CCC; padding:20px;">                   
                <p>Tem certeza que deseja excluir esse usuário?</p>
            </div>            
        </div>

        <div class="modal-footer">
            <button class="btn btn-primary" data-dismiss="modal" aria-hidden="true">Cancelar</button>
            <asp:Button ID="btExcluir" runat="server" Text="Excluir" class="btn btn-danger" OnClick="btExcluir_Click"/>
        </div>
    </div>
    <%--Fim do Modal Excluir Vaga--%>

    <%--Modal Permissão de Acesso--%>
    <div id="modalPermissao" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h3 id="myModalLabel">Permissões de Acesso</h3>
        </div>

        <div class="modal-body">
            <div style="border:1px solid #CCC; padding:20px;">   
        
                <asp:ListView ID="lvProgramas" runat="server">
                    <LayoutTemplate>
                        <table id="tableDefaultGRB" class="table table-striped">
                       <thead>
                
                        <tr id="Tr1" runat="server" class="CabecalhoTabela">
                            <td id="Td1" class="CabecalhoTabela" runat="server">Permissão</td>  
                            <td id="Td2" class="CabecalhoTabela" runat="server">Menu Principal</td>  
                            <td id="Td3" class="CabecalhoTabela" runat="server">Programa</td>  
                            <td id="Td4" runat="server" visible="false"></td>
                        </tr>
                
                        <tbody>
                        <tr id="itemPlaceholder" runat="server">
                        </tr>
                               </tbody>                
                        </thead> 
                        </table>
                    </LayoutTemplate>            

                    <ItemTemplate>            
			            <tr>
                            <td><asp:CheckBox ID="chbPermissao" runat="server" Checked='<%# Convert.ToBoolean(Eval("Permissao")) %>' /></td>
                            <td><asp:Label runat="server" ID="Blow" Text='<%# Eval("MenuPai")%>'></asp:Label></td>
                            <td id="lblB" runat="server" visible="true"><%# Eval("MenuFilho")%></td>        
                            <td Visible="false" runat="server"><asp:Label runat="server" ID="lblIdPrograma" Text='<%# Eval("IDPrograma")%>' ></asp:Label></td>            
                        </tr>            
                    </ItemTemplate>

                    <EmptyDataTemplate>
                        <tr>
                            <td colspan="5">Nenhum registro encontrado.</td>
                        </tr>
                    </EmptyDataTemplate>

                </asp:ListView>    
            </div>
        </div>

        <div class="modal-footer">
            <button class="btn btn-primary" data-dismiss="modal" aria-hidden="true">Fechar</button>
        </div>
    </div>
    <%--Fim do Modal de Permissão--%>


    <%--Linha 1--%>
    <div class="row">
        <div class="span1">
            <label>Código</label>        
            <asp:TextBox ID="txtCod" runat="server" class="input-xlarge disabledInput" Width="60px" Enabled="false"></asp:TextBox>
        </div>
      
        <div class="span2">
            <label>Data do Cadastro</label>        
            <asp:TextBox ID="txtDtCadastro" runat="server" class="input-xlarge disabledInput" Width="140px" Enabled="false"></asp:TextBox>
        </div>

        <div class="span4">
            <label>Nome Completo</label>    
            <asp:TextBox ID="txtNomeCompleto" runat="server" Width="300px" MaxLength="50"></asp:TextBox>
        </div>

        <div class="span2">
            <label>Login</label>        
            <asp:TextBox ID="txtLogin" runat="server" Width="140px" MaxLength="50"></asp:TextBox>
        </div>
    </div>


    <%--Linha 2--%>
    <div class="row">
        <div class="span5">
            <label>E-mail</label>        
            <asp:TextBox ID="txtEmail" runat="server" Width="380px" MaxLength="100"></asp:TextBox>
        </div>

        <div class="span2">
            <label>Senha</label>        
            <asp:TextBox ID="txtSenha" runat="server" Width="140px" TextMode="Password" MaxLength="16"></asp:TextBox>
        </div>

        <div class="span2">
            <label>Confirme Senha</label>        
            <asp:TextBox ID="txtConfirmeSenha" runat="server" Width="140px" TextMode="Password" MaxLength="16"></asp:TextBox>
        </div>
    </div>

</asp:Content>
